package com.dianhun.cn.document;

import io.searchbox.annotations.JestId;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.MultiField;

/**
 * @author cyt
 * @create 2020-09-04 14:28
 */
@Accessors(chain = true)
@Data
public class Article {
    @JestId
    private long documentId;
    private long documentVersion;
    @MultiField(mainField = @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_smart"))
    private String content;
    private String auth;
    private String push;
}

